//
//  RemoteAction.swift
//  RemoteService
//
//  Created by Longxiang Guo (QXQ4633) on 2021/5/27.
//

import Foundation

struct RemoteAction: Codable {
    
    var isSupported: Bool
    var icon: String
    var type: RemoteType
    
}

enum RemoteType: String, Codable {
    case lock
    case unlock
    case climate
}


struct VehicleInfo: Codable {
    
    var vin: String
    var bodyType: String
    var lisence: String
    var lscData: VehicleLSC
    var capbilties: RemoteCapbility
}

struct VehicleLSC: Codable {
    
    var location: Location
}

struct Location: Codable {
    var latitude: Double
    var lontitude: Double
}

struct RemoteCapbility: Codable {
    var capbilities: [RemoteAction] = []
}
